package com.iplant.mes.service.po.andon.productData;

import com.fasterxml.jackson.annotation.JsonProperty;

/**
 * 订单合格率
 *
 * @author YouWang·Peng
 * 2024-1-3 16:44:16
 */
public class AndonOrderRate {
    /**
     * 订单号
     */
    public String OrderNo = "";
    /**
     * 合格数
     */
    public int GoodCount = 0;
    /**
     * 不合格数
     */
    public int BadCount = 0;
    /**
     * 订单合格率
     */
    public float QualityRate = 0.0f;

    public AndonOrderRate() {
    }

    public AndonOrderRate(String orderNo, int goodCount, int badCount, float qualityRate) {
        OrderNo = orderNo;
        GoodCount = goodCount;
        BadCount = badCount;
        QualityRate = qualityRate;
    }

    @JsonProperty("OrderNo")
    public String getOrderNo() {
        return OrderNo;
    }

    public void setOrderNo(String orderNo) {
        OrderNo = orderNo;
    }

    @JsonProperty("QualityRate")
    public float getQualityRate() {
        return QualityRate;
    }

    public void setQualityRate(float qualityRate) {
        QualityRate = qualityRate;
    }

    @JsonProperty("GoodCount")
    public int getGoodCount() {
        return GoodCount;
    }

    public void setGoodCount(int goodCount) {
        GoodCount = goodCount;
    }

    @JsonProperty("BadCount")
    public int getBadCount() {
        return BadCount;
    }

    public void setBadCount(int badCount) {
        BadCount = badCount;
    }
}
